package com.hmall.common.config;

import com.hmall.common.config.interceptors.MyFeignInterceptor;
import feign.Logger;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author ZhuQingJiang
 * @Date 2022/8/14 8:50
 * @Description:
 */
@Configuration
@EnableFeignClients(basePackages = "com.hmall.common.feign")
public class FeignConfig {
    @Bean
    public Logger.Level loggerlevel(){
        return Logger.Level.BASIC;
    }
    @Bean
    public MyFeignInterceptor myFeignInterceptor(){
        return new MyFeignInterceptor();
    }
}
